package com.hsh.maoduo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hsh.maoduo.common.Result;
import com.hsh.maoduo.pojo.dto.ShopGoodsDTO;
import com.hsh.maoduo.pojo.entity.ShopGoods;
import com.hsh.maoduo.pojo.vo.OrderGoodsVO;
import com.hsh.maoduo.pojo.vo.OutboundVO;
import com.hsh.maoduo.pojo.vo.ShopGoodsVO;

import java.util.List;
import java.util.Map;

/**
* @author USER
* @description 针对表【shop_goods】的数据库操作Service
* @createDate 2024-03-21 13:44:35
*/
public interface ShopGoodsService extends IService<ShopGoods> {

    /**
     * 列表查询
     * @param shopGoodsVO
     * @return
     */
    List<ShopGoodsDTO> getList(ShopGoodsVO shopGoodsVO);

    /**
     * 批量添加
     * @param shopGoodsVOList
     * @return
     */
    Result<Integer> addList(List<ShopGoodsVO> shopGoodsVOList);


    /**
     * 修改
     * @param shopGoodsVO
     * @return
     */
    Result update(ShopGoodsVO shopGoodsVO);

    /**
     * 删除
     * @param id
     * @return
     */
    Result delete(int id);


    /**
     * 根据店铺商品id 获取 商品名称
     * @param shopGoodsVO
     * @return
     */
//    Map<String,String> selectGoodsNameList(ShopGoodsVO shopGoodsVO);
    List<ShopGoodsDTO> selectGoodsNameList(ShopGoodsVO shopGoodsVO);
}
